package com.song.base.consts;

public enum ResponseEnum {
    RES_SUCCESS(200,"访问成功"),
    RES_ERROR(5000,"访问错误"),

    BLOCK_DEGRADE(8001,"触发熔断"),

    CHECK_FLOW(5001,"校验失败"),
    QUERY_FLOW(5002,"查询失败"),
    Transform__FLOW(5003,"转换失败"),

    BLOCK_FLOW(8002,"触发流控");



    Integer code;
    String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
